package hu.mapro.gwtui.gxt.client.recordseditor.requestfactory;

import hu.mapro.gwtui.gxt.client.fieldseditor.Initializer;
import hu.mapro.gwtui.shared.data.ClassDataFactory;

import java.util.List;

import com.google.gwt.editor.client.EditorError;
import com.google.gwt.user.client.ui.Widget;

public interface TypeEditorInterface<T> extends ClassDataFactory {

	void initialize(Initializer initializer);
	
	T edit(T object);

	boolean isDirty();

	List<EditorError> getErrors();

	boolean hasErrors();

	void flush();
	
	Widget getWidget();
	
	void focus();
	
	
}
